package com.lemon.boot.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 城市表持久层对象，对应数据库
 *
 * @author Lemon
 * @since 2024-02-29
 */
@Getter
@Setter
@ToString
@ApiModel(value = "城市表")
@TableName("sys_city")
public class CityPO implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键ID
    @TableId(value = "id")
    @ApiModelProperty(value = "主键ID")
    private Long id;

    //城市名称
    @ApiModelProperty(value = "城市名称")
    private String name;

    //父ID
    @ApiModelProperty(value = "父ID")
    private Long parentId;
}
